From: Joan Torres Date: Wed, 13 Mar 2024 16:43:20 +0000 (+0100) Subject: loginDialog: Improve conflicting session notification message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~267^2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b33f82b5837af41eaaa93dc2ec80ce5fa560a5cf;p=gnome-shell.git loginDialog: Improve conflicting session notification message This makes it less confusing. Part-of: --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 42c421ac1..4f51a6f41 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1073,13 +1073,13 @@ export const LoginDialog = GObject.registerClass({ }, this); } - _notifyConflictingSessionDialogClosed(userName) { + _notifyConflictingSessionDialogClosed() { const source = new MessageTray.getSystemSource(); this._conflictingSessionNotification = new MessageTray.Notification({ source, - title: _('Stop conflicting session dialog closed'), - body: _('Try to login again to start a session for user %s.').format(userName), + title: _('Login Attempt Timed Out'), + body: _('Login took too long, please try again'), urgency: MessageTray.Urgency.CRITICAL, isTransient: true, }); @@ -1112,7 +1112,7 @@ export const LoginDialog = GObject.registerClass({ }, conflictingSessionDialog); const closeDialogTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _CONFLICTING_SESSION_DIALOG_TIMEOUT, () => { - this._notifyConflictingSessionDialogClosed(this._user.get_user_name()); + this._notifyConflictingSessionDialogClosed(); conflictingSessionDialog.close(); this._authPrompt.reset(); return GLib.SOURCE_REMOVE;